def color_code(color):
    """
    get color code
    :param color:
    :return:
    """

    return color_map().get(color)


def colors():
    return [color for color in color_map().keys()]


def color_map():
    """
    fetch color set
    :return:
    """

    return {
        'black': 0,
        'brown': 1,
        'red': 2,
        'orange': 3,
        'yellow': 4,
        'green': 5,
        'blue': 6,
        'violet': 7,
        'grey': 8,
        'white': 9,
    }
